package com.star.dto;

import lombok.Data;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
public class BusinessDTO implements Serializable {

    private Long id;

    @Size(min = 6, max = 10, message = "用户名长度必须在6到10个字符之间")
    @Pattern(regexp = "^[a-zA-Z0-9]+$", message = "用户名只能包含数字和字母")
    private String username;

    private String name;

    private String phone;

    private String idNumber;

}
